/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package smartgrid;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class VariaveisSistemaDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression ID;
	public final DateExpression ultimoPovDia;
	public final DateExpression ultimoPovSemana;
	public final DateExpression ultimoPovMes;
	
	public VariaveisSistemaDetachedCriteria() {
		super(smartgrid.VariaveisSistema.class, smartgrid.VariaveisSistemaCriteria.class);
		ID = new IntegerExpression("ID", this.getDetachedCriteria());
		ultimoPovDia = new DateExpression("ultimoPovDia", this.getDetachedCriteria());
		ultimoPovSemana = new DateExpression("ultimoPovSemana", this.getDetachedCriteria());
		ultimoPovMes = new DateExpression("ultimoPovMes", this.getDetachedCriteria());
	}
	
	public VariaveisSistemaDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, smartgrid.VariaveisSistemaCriteria.class);
		ID = new IntegerExpression("ID", this.getDetachedCriteria());
		ultimoPovDia = new DateExpression("ultimoPovDia", this.getDetachedCriteria());
		ultimoPovSemana = new DateExpression("ultimoPovSemana", this.getDetachedCriteria());
		ultimoPovMes = new DateExpression("ultimoPovMes", this.getDetachedCriteria());
	}
	
	public VariaveisSistema uniqueVariaveisSistema(PersistentSession session) {
		return (VariaveisSistema) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public VariaveisSistema[] listVariaveisSistema(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (VariaveisSistema[]) list.toArray(new VariaveisSistema[list.size()]);
	}
}

